home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacApp Release 10 / MacApp Release 10 - HD Ready / Libraries / Mail / Includes / UMailableDocument.h < prev    next >
Encoding:
Text File  |  1996-04-03  |  2.1 KB  |  79 lines  |  [TEXT/MPS ]

  1. // UMailableDocument.h
  2. // Copyright © 1984-96 by Apple Computer, Inc. All rights reserved.
  3.  
  4. #ifndef __UMAILABLEDOCUMENT__
  5. #define __UMAILABLEDOCUMENT__
  6.  
  7. #if qPowerTalk
  8.  
  9. // MacApp
  10.  
  11. #ifndef __UFILEBASEDDOCUMENT__
  12. #include "UFileBasedDocument.h"
  13. #endif
  14.  
  15. #ifndef __UMAILABLE__
  16. #include "UMailable.h"
  17. #endif
  18.  
  19. //----------------------------------------------------------------------------------------
  20. // Forward and external class declarations. 
  21. //----------------------------------------------------------------------------------------
  22.  
  23. class MScriptableObject;
  24. class TAppleEvent;
  25. class TObject;
  26.  
  27. //----------------------------------------------------------------------------------------
  28. // CDSSpec represents an AOCE DSSpec structure. DSSpecs are used to represent most objects
  29. //----------------------------------------------------------------------------------------
  30.  
  31. class TMailableDocument : public TFileBasedDocument, public MMailable
  32. {
  33.  
  34.     MA_DECLARE_CLASS;
  35.  
  36. public:
  37.  
  38.     TMailableDocument();
  39.         // Constructor
  40.         
  41.     void IMailableDocument(TFile* itsFile, OSType itsScrapType);
  42.         // Initialization method for TMailableDocument.
  43.  
  44.     virtual void Changed(ChangeID theChange, 
  45.                                 TObject* changedBy);
  46.         // Calls LetterContentChanged.
  47.         
  48.     virtual void Close(); //override
  49.  
  50.     virtual void DoMenuCommand(CommandNumber aCommandNumber);
  51.         // Calls DoMailMenuCommand.
  52.  
  53.     virtual void DoSetupMenus();
  54.         // Calls DoSetupMailMenus.
  55.  
  56.     virtual void DoAECreateElement(TAppleEvent* message,
  57.                                      TAppleEvent* reply);
  58.         // Calls DoAECreateMailer to create a cMailer.
  59.  
  60.     virtual long CountContainedObjects(DescType desiredType);
  61.         // Calls CountContainedMailers to return the number of cMailers.
  62.  
  63.  
  64.     virtual MScriptableObject* GetIndContainedObject(DescType desiredType,
  65.                                                         long index);
  66.         // Calls GetIndContainedMailer to return a cMailer.
  67.  
  68.     virtual void DoScriptCommand(CommandNumber aCommandNumber, TAppleEvent* message,
  69.                               TAppleEvent* reply);
  70.         // Calls DoAESend to handle the send event.
  71.  
  72.     virtual void SaveDocument(CommandNumber itsCommandNumber);
  73.         // Try to save the document to disk
  74. };
  75.  
  76. #endif // qPowerTalk
  77.  
  78. #endif // __UMAILABLEDOCUMENT__
  79.